import request from '@/utils/request'

// 查询用户问卷答案列表
export function listUserAnswer(query) {
  return request({
    url: '/system/userAnswer/list',
    method: 'get',
    params: query
  })
}

// 查询用户问卷答案详细
export function getUserAnswer(id) {
  return request({
    url: '/system/userAnswer/' + id,
    method: 'get'
  })
}

// 新增用户问卷答案
export function addUserAnswer(data) {
  return request({
    url: '/system/userAnswer',
    method: 'post',
    data: data
  })
}

// 修改用户问卷答案
export function updateUserAnswer(data) {
  return request({
    url: '/system/userAnswer',
    method: 'put',
    data: data
  })
}

// 删除用户问卷答案
export function delUserAnswer(id) {
  return request({
    url: '/system/userAnswer/' + id,
    method: 'delete'
  })
}
